package com.xsz.entity;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name="tb_user")
@Getter
@Setter
public class User implements Serializable {
    private static final long serialVersionUID = 1L;
    /**主键ID**/
    @Id
    @Column(length=60)
    private String id;

    @Column(length=30)
    /**用户账号**/
    private String name;

    @Column(length=90)
    /**用户密码**/
    private String pwd;

    /**
     * 用户角色
     * 0表示普通用户
     * 1表示vip用户
     * 2表示申请中
     **/
    private Integer role=0;
    @Column(length=30)
    /**用户手机号码**/
    private String mobile;

    @Column(length=30)
    /**用户邮箱**/
    private String email;

    @Column(length=30)
    /**用户年龄**/
    private String age;

    @Column(length=10)
    /**用户性别**/
    private String sex;

    @Column(length=30)
    /**用户真实姓名**/
    private String realname;

    @Column(length=30)
    /**用户身份证号**/
    private String chinaid;
}
